package com.lyf.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.lyf.comon.ResponseResult;
import com.lyf.entity.SlideShow;
import com.lyf.exception.GlobalExceptionHandler;
import com.lyf.qo.SlideShowQuery;
import com.lyf.vo.SlideShowVO;

import java.util.List;

public interface SlideShowService extends IService<SlideShow> {
    //根据id查询轮播图
    SlideShow findSlidShowById(Long id) throws Exception ;
    //分页
    IPage<SlideShow> listPage(SlideShowQuery query) throws Exception;
    //根据类型查询轮播图
    List<SlideShowVO> findByType(Integer id) throws GlobalExceptionHandler;
    //修改或新增轮播图
    ResponseResult saveOrUpdateSlideShow(SlideShow slideShow) throws GlobalExceptionHandler;
    //删除轮播图
    void deleteById(Long id) throws GlobalExceptionHandler;
}
